package com.liuxinlong.modules.dao.impl;

import com.liuxinlong.modules.dao.ShareFileDao;
import com.liuxinlong.modules.entity.ShareFile;
import com.liuxinlong.modules.mapper.ShareFileMapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * EcnFileDaoImpl
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2022年6月14日
 */
@Service
public class ShareFileDaoImpl extends ServiceImpl<ShareFileMapper, ShareFile> implements ShareFileDao {
    @Override
    public ShareFile getOneByNo(Map<String,Object> param) {
        return baseMapper.getOneByNo(param);
    }

    @Override
    public List<ShareFile> getAllFiles(int sourceType) {
        return baseMapper.getAllFiles(sourceType);
    }

    @Override
    public Map<String, Map<String, String>> getAllFileMap(int sourceType) {
        return baseMapper.getAllFileMap(sourceType);
    }
}
